<!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>后台主界面</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href='<?php echo $static_url; ?>common/css/admin.css' type="text/css" />
<script src="<?php echo $static_url; ?>common/js/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="<?php echo $static_url; ?>common/js/common.js" type="text/javascript"></script>

<script src="<?php echo $static_url; ?>common/js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<link rel="stylesheet" href='<?php echo $static_url; ?>common/css/daily_record.css' type="text/css" />
</head>
<body class="body_background">
	<div>
		<?php echo $header_nav; ?>
		<div class="common_container clearfix">
			<div class="crumbs">
				<span class="catalogue">会员</span>
				<a href="/www/admin/vip/vip_lists_buy.php">纯买家会员</a> |
				<a href="/www/admin/vip/vip_lists_trading.php">缴费交易会员</a> |
				<a href="/www/admin/vip/vip_lists_upgrade.php">会员升级</a> |
				<a href="/www/admin/vip/vip_lists_buy_before.php">纯买家会员(预审)</a> |
				<a href="/www/admin/vip/vip_lists_trading_before.php">缴费交易会员(预审)</a> |
				<a href="/www/admin/vip/vip_search.php">会员搜索</a>
			</div>
			<div class="daily_record_menu" id="side_container">
				<div class="closeSidebar"><i title="点击隐藏左菜单" class="icon_close"></i></div>
				<ul class="record_menu">
					<li style="font-size:14px;">会员</li>
					<li><a href="/www/admin/vip/vip_lists_buy.php"> └ 纯买家会员</a></li>
					<li><a href="/www/admin/vip/vip_lists_trading.php"> └ 缴费交易会员</a></li>
					<li><a href="/www/admin/vip/vip_lists_upgrade.php"> └ 会员升级</a></li>
					<li><a href="/www/admin/vip/vip_lists_buy_before.php"> └ 纯买家会员(预审)</a></li>
					<li style="padding-left:20px;width:135px"><a href="/www/admin/vip/vip_lists_buy_before.php"> └ 总列表</a></li>
					<li style="padding-left:20px;width:135px"><a href="/www/admin/vip/vip_lists_buy_before.php?status_type=1"> └ 待审核</a></li>
					<li style="padding-left:20px;width:135px"><a href="/www/admin/vip/vip_lists_buy_before.php?status_type=2"> └ 已认证</a></li>
					<li style="padding-left:20px;width:135px"><a href="/www/admin/vip/vip_lists_buy_before.php?status_type=3"> └ 已拒绝</a></li>
					<li><a href="/www/admin/vip/vip_lists_trading_before.php"> └ 缴费交易会员(预审)</a></li>
					<li><a href="/www/admin/vip/vip_search.php"> └ 会员搜索</a></li>
				</ul>
			</div>
			<div class="sidebar_container_hidden" style="margin-top:10px;margin-right:5px;" >
				<div class="openSidebar"><i title="点击显示左菜单" class="icon_open"></i></div>
			</div>
			<div class="daily_record_main" id="main_container">
				<table class="record_tips"><tr><td>纯买家会员(预审)&nbsp;&gt;&nbsp;<?php echo $this_address; ?></td></tr></table>
					<div class="vip_edit_container">
						<form id="form1" encType="multipart/form-data" method="post" name="form1" action="/www/admin/vip/do/do_edit_buy_before.php">
							<table class="table_form" border="0" cellSpacing="0" width="750">
								<tbody>
									<tr>
										<td width="200">
											<input id="status" name="status" value="1" type="hidden">
											<input name="id" type="hidden" value="<?php echo $vip_rs['id']; ?>" />
											<input name="username" type="hidden" value="<?php echo h_d($vip_rs['username']); ?>" />
											<input name="status_type" type="hidden" value="<?php echo $status_type; ?>" />
											<span>ID:<font class="Need ">*</font></span>
										</td>
										<td><?php echo $vip_rs['id']; ?></td>
									</tr>
									<tr>
										<td width="200"><span>用户名:<font class="Need ">*</font></span></td>
										<td><?php echo h_d($vip_rs['username']); ?></td>
									</tr>
									<tr>
										<td width="200"><span>姓名:<font class="Need ">*</font></span></td>
										<td><?php echo h_d($vip_rs['name']); ?></td>
									</tr>
									<tr>
										<td width="200"><span>性别:<font class="Need ">*</font></span> </td>
										<td>
											<?php echo ($vip_rs['sex']==1) ? '男' : '女'; ?>
										</td>
									</tr>
									<tr>
										<td width="200"><span>邮政编码:<font class="Need ">*</font></span> </td>
										<td><?php echo h_d($vip_rs['postcode']); ?></td>
									</tr>
									<tr>
										<td width="200"><span>通信地址:<font class="Need ">*</font></span> </td>
										<td>
											<?php echo h_d($vip_rs['mailaddress']); ?>
										</td>
									</tr>
									<tr>
										<td width="200">当前状态:</td>
										<td>
											<span style="color: red">
												<?php if($vip_rs['status']==2){echo '已认证';}elseif($vip_rs['status']==3){echo '已拒绝';}else{echo '待审核';} ?>
											</span>
											&nbsp;&nbsp;(该会员想申请成为纯买家)
											<?php if($vip_rs['is_before']==2){echo '<span style="color:red;font-weight:bold;">&nbsp;&nbsp;预审</span>';} ?>
										</td>
									</tr>
									<tr height="120">
										<td width="200">交易会员组:</td>
										<td>
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==57 ? 'checked="checked"' : ''; ?> value="57">纯买家
											<br/>
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==45 ? 'checked="checked"' : ''; ?> value="45">营销员1年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==46 ? 'checked="checked"' : ''; ?> value="46">营销员2年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==47 ? 'checked="checked"' : ''; ?> value="47">营销员3年
											<br/>
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==48 ? 'checked="checked"' : ''; ?> value="48">营销主管1年&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==49 ? 'checked="checked"' : ''; ?> value="49">营销主管2年&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==50 ? 'checked="checked"' : ''; ?> value="50">营销主管3年
											<br/>
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==51 ? 'checked="checked"' : ''; ?> value="51">总经理1年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==52 ? 'checked="checked"' : ''; ?> value="52">总经理2年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==53 ? 'checked="checked"' : ''; ?> value="53">总经理3年
											<br/>
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==54 ? 'checked="checked"' : ''; ?> value="54">董事长1年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==55 ? 'checked="checked"' : ''; ?> value="55">董事长2年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input type="radio" name="groupid" <?php echo $vip_rs['groupid']==56 ? 'checked="checked"' : ''; ?> value="56">董事长3年
										</td>
									</tr>
									<tr>
										<td width="200">交易会员组有效期:</td>
										<td>
											<input id="valid_date" name="valid_date" value="<?php echo $valid_date; ?>" onfocus="WdatePicker({dateFmt:'yyyy-M-d'})">&nbsp;(默认一年) 
										</td>
									</tr>
									<tr>
										<td width="200">嘉宾、管理会员组:</td>
										<td>
											<input type="checkbox" name="extgroupids[]" <?php echo in_array(43,$extgroupids) ? 'checked="checked"' : ''; ?> value="43" />特邀嘉宾&nbsp;&nbsp;
											<input type="checkbox" name="extgroupids[]" <?php echo in_array(44,$extgroupids) ? 'checked="checked"' : ''; ?> value="44" />讨论组会员&nbsp;&nbsp;
											<input type="checkbox" name="extgroupids[]" <?php echo in_array(58,$extgroupids) ? 'checked="checked"' : ''; ?> value="58" />栏目巡视员&nbsp;&nbsp;
											<input type="checkbox" name="extgroupids[]" <?php echo in_array(59,$extgroupids) ? 'checked="checked"' : ''; ?> value="59" />鉴定员
										</td>
									</tr>
									<tr>
										<td width="200">管理员注:</td>
										<td><textarea cols="36" rows="8" name="remark"><?php echo h_d($vip_rs['remark']); ?></textarea>(该内容会在签名档显示)</td>
									</tr>
									<tr>
										<td style="text-align:center;" colSpan="2">
											<input class="submit_style"onclick="javascript:is_yes_no(2);" value="<?php if($vip_rs['status']==2){echo '保存';}else{echo '通过';} ?>" type="submit">
											<input class="submit_style" onclick="javascript:is_yes_no(3);" value="<?php if($vip_rs['status']==3){echo '保存';}else{echo '拒绝';} ?>" type="submit"> 
											<input class="submit_style" name="submit_reset" value="重置" type="reset"> 
										</td>
									</tr>									
								</tbody>
							</table>
						</form>
					</div>
			</div>
		</div>
	</div>
<script type="text/javascript">
function is_yes_no(id){
	document.form1.status.value=id;
}
</script>
</body>
</html>